import server.jsons.GsonFactory;
import server.jsons.Message;
import server.jsons.User;

import com.google.gson.Gson;


public class JsonGen {
	
	static public void main(String args[]){
		generateUser();
		generateLogin();
	}
	
	static public void generateUser(){
		User u = new User("Widmann", "Marius", "marius.widmann@gmail.com", "1234");
		u.setMessage(Message.TYPE_REGISTER_NEW_USER);
		Gson json = GsonFactory.getGson();
		System.out.println(json.toJson(u));
	}
	
	static public void generateLogin(){
		User u = new User("Widmann", "Marius", "marius.widmann@gmail.com", "1234");
		u.setMessage(Message.TYPE_LOGIN);
		Gson json = GsonFactory.getGson();
		System.out.println(json.toJson(u));
		
	}
	
}